//
//  NewsCell.m
//  Commerce
//
//  Created by xiaofeifei on 15/2/27.
//  Copyright (c) 2015年 fei. All rights reserved.
//

#import "NewsCell.h"

@implementation NewsCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)configUIWithData:(NSDictionary *)dic{
    _nameLabel.text = dic[@"NewsTitle"];
//    _conentLabel.text =  [dic[@"NewsInfo"] URLDecodedString];
    _timeLabel.text = [NSString stringWithFormat:@"发布时间:%@",dic[@"CreateTime"]];
    _viewNumLabel.text = [NSString stringWithFormat:@"浏览：%@次",dic[@"OrderNum"]];
    [_imgView sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",URL_ROOT_PIC,dic[@"NewsCoverStr"]]] placeholderImage:[UIImage imageNamed:@"news.png"]];   
}

@end
